  {%- include snippets/get-site-theme.html -%}
  {%- assign _site_theme = __return -%}
  {%- include snippets/get-header-always-on-top.html -%}
  {%- assign _header_always_on_top = __return -%}
  {%- if _header_always_on_top == false -%}
    {%- assign _header_fixed_style = 'header-normal' -%}
  {%- else -%}
    {%- assign _header_fixed_style = 'header-fixed' -%}
  {%- endif -%}

  {%- if _site_theme == 'dark' -%}
    <header id="header" class="header header-dark {{ _header_fixed_style }}"{% if include.background %} style="background: {{ include.background }};"{% endif %}>
  {%- elsif _site_theme == 'light' -%}
    <header id="header" class="header header-light {{ _header_fixed_style }}"{% if include.background %} style="background: {{ include.background }};"{% endif %}>
  {%- else -%}
    <header id="header" class="header {{ _header_fixed_style }}"{% if include.background %} style="background: {{ include.background }};" {% endif %}>
  {%- endif -%}
      {%- if include.sidebar == true -%}
      <!--<div class="header_sidebar"></div>-->
      {%- endif -%}
      <div class="main">        
        <div class="header_title">
          <div class="header_brand">
            {%- include svg/logo.svg -%}
            {%- assign _paths_root = site.paths.root | default: site.data.variables.default.paths.root -%}
            {%- include snippets/get-nav-url.html path=_paths_root -%}
            {%- if site.title -%}
            <a href="{{ __return }}" title="{%- if site.description -%}{{ site.description }}{%- endif -%}">{{ site.title }}</a>
            {%- endif -%}
          </div>
          {%- if site.search.provider -%}
          <button class="button button-secondary button-circle search-button js-search-toggle"><i class="fas fa-search"></i></button>
          {%- endif -%}
        </div>
        {%- if site.data.navbar.header -%}
        {%- if site.header.navbar.text_spacing == true -%}
          {%- assign _text_spacing = '&nbsp;' -%}
        {%- else -%}
          {%- assign _text_spacing = '' -%}
        {%- endif -%}
        <nav class="navbar">
          <ul>
            {%- for _item in site.data.navbar.header -%}
            {%- include snippets/get-nav-url.html path=_item.url -%}
            {%- assign _nav_url = __return -%}
            {%- include snippets/get-nav-url.html path=page.url -%}
            {%- assign _page_url = __return -%}
            {%- include snippets/get-string-from-locale-config.html locale=_item.titles -%}
            {%- if (_nav_url == _page_url) or (page.nav_key and _item.key and page.nav_key == _item.key) -%}
            <li class="navbar_item navbar_item-active">{{ _text_spacing }}{%- if site.header.navbar.show_icon -%}{%- if _item.class -%}<span class="navbar_icon"><i class="{{ _item.class }}"></i></span>&nbsp;{%- endif -%}{%- endif -%}<a href="{{ _nav_url }}"{% if _item.target %} target="{{ _item.target }}"{% endif %}>{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a>{{ _text_spacing }}</li>
            {%- if site.header.navbar.vertical_divider -%}<div class="navbar_vertical_divider"></div>{%- endif -%}
            {%- else -%}
            <li class="navbar_item">{{ _text_spacing }}{%- if site.header.navbar.show_icon -%}{%- if _item.class -%}<span class="navbar_icon"><i class="{{ _item.class }}"></i></span>&nbsp;{%- endif -%}{%- endif -%}<a href="{{ _nav_url }}"{% if _item.target %} target="{{ _item.target }}"{% endif %}>{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a>{{ _text_spacing }}</li>
            {%- if site.header.navbar.vertical_divider -%}<div class="navbar_vertical_divider"></div>{%- endif -%}
            {%- endif -%}
            {%- endfor -%}
            {%- if site.search.provider -%}
            <li><button class="button button-secondary button-circle search-button js-search-toggle"><i class="fas fa-search"></i></button></li>
            {%- endif -%}
          </ul>
        </nav>
        {%- endif -%}
      </div>
    </header>
    {%- if _header_always_on_top != false -%}
    <div class="header_dividing-line-fixed"></div>
    {%- endif -%}